package com.syh.jn.scm.service.impl.supplier.finance;

import com.alibaba.dubbo.config.annotation.Service;
import com.syh.jn.scm.dto.supplier.finance.UpPayableAndReceivableVo;
import com.syh.jn.scm.infrastructure.repository.utils.MybatisTemplate;
import com.syh.jn.scm.service.api.supplier.finance.UpPayableAndReceivableService;

import java.util.List;
import java.util.Map;

/**
 * 往来单位应收付（上游）
 */
@Service
public class UpPayableAndReceivableServiceImpl implements UpPayableAndReceivableService {
  @Override
  public List<UpPayableAndReceivableVo> payableAndReceivableStatistics(Map<String, Object> params) {
    return MybatisTemplate.selectList("upPayableAndReceivableQRepository.payableAndReceivableReport", params);
  }

  @Override
  public Integer payableAndReceivableStatisticsCount(Map<String, Object> params) {
    return MybatisTemplate.selectOne("upPayableAndReceivableQRepository.payableAndReceivableReportCount", params);
  }
}
